﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace MEMDB
{
    public enum SqlType
    {
        Int,
        Float,
        NChar
    }

    public class Parameter
    {
        public string m_parameterName;
        public SqlType m_Type;
        public  Object m_Value;

        public Parameter(string parameterName, SqlType type)
        {
            m_parameterName = parameterName;
            m_Type = type;
            m_Value = null;
        }
    }

    public class ParameterCollaboration
    {
        public List<Parameter> m_Parameters;

        public ParameterCollaboration()
        {
            m_Parameters = new List<Parameter>();
        }

        public Parameter Add(string parameterName, SqlType type)
        {
            m_Parameters.Add(new Parameter(parameterName, type));
            return m_Parameters[m_Parameters.Count - 1];
        }
    }
}
